<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html"%>
<%@ page contentType="text/html;charset=UTF-8" isErrorPage="true"%>
<%@ page import="java.io.PrintWriter"%>
<%
	String path = request.getContextPath();
	request.setAttribute("path",path); 
%>
<HTML>
	<HEAD>
		<html:base />
		<TITLE>系统信息</TITLE>
		<script language="javascript" src="report.js" type="text/javascript"></script>
		<script language="javascript" type="text/javascript">
                     function showDetail(){
                        var detailinfo = document.getElementById("detail");
                        if(detailinfo.style.display == "none")
                        {
                            detailinfo.style.display = 'block';
                        }
                        else if(detailinfo.style.display == "block")
                        {
                            detailinfo.style.display = 'none';
                        }
                    }
                
                </script>
		<link media="all" href="style.css" rel="stylesheet" type="text/css" />
	</HEAD>
	<body>
		<table align="center" border="0" height="100%">
			<tr>
				<td align="center">

					<table class="table" align="center">
						<tr>
							<td>
								<table width="100%" border="0" align="center">
									<tr>
										<td width="147" rowspan="2" align="center">
											<img src="${path}/common/error/images/system_error.gif" alt="错误提示" />
										</td>
										<td width="433" height="94" valign="middle" align="left">
											<div>
												System Information：System occour an error!
											</div>
											<div>
												Error Message：System internal error
											</div>
										</td>
									</tr>
									<tr>
										<td colspan="2" height="20" align="left">
											<span><a
												style="cursor:pointer;color:blue;font-weight:bold;"
												onclick="showDetail();"> Click here to <span
													id="showlink">see</span> the Detail </a>, Please contact the
												system admin resolve this error!</span>
										</td>
									</tr>
									<tr>
										<td colspan="2">
											<div id="detail" style="display:none;">
												<%if(exception != null){
                                            PrintWriter p = new PrintWriter(out);
                                            exception.printStackTrace(p);
                                          }
                                          else{
                                            out.println("There is a unknown error.");
                                          }
                                        %>
											</div>
										</td>
									</tr>
									<tr>
										<td align="right" colspan="2">
											<br />
											<a href="#" onclick="javascript:window.history.back(-1);">back</a>
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>

				</td>
			</tr>
		</table>
	</body>
</HTML>
